package com.fruit.constants;

/**
 * 
 * @ClassName: PayConstant
 * @author 葛欢欢
 * @version 2017.11.30 16:40
 */
public class PayConstant {

	/**
	 * 
	 * @ClassName: PayMode
	 * @author 葛欢欢
	 * @version 2017.11.30 16:40
	 */
	public enum PayMode {
		alipay("alipay"), wechat("wechat");
		String value;

		PayMode(String value) {
			this.value = value;
		}

		/**
		 * 
		 * @author 葛欢欢
		 * @version 2017.11.30 16:40
		 * @return String
		 */
		public String getValue() {
			return value;
		}

		/**
		 * 
		 * @author 葛欢欢
		 * @version 2017.11.30 16:40
		 * @param value
		 *            value
		 */
		public void setValue(String value) {
			this.value = value;
		}

		/**
		 * 
		 * @author 葛欢欢
		 * @version 2017.11.30 16:40
		 * @param value
		 *            value
		 * @return boolean
		 */
		public boolean equals(String value) {
			return this.value.equals(value);
		}
	}

	/**
	 * 
	 * @ClassName: WechatPayType
	 * @author 葛欢欢
	 * @version 2017.11.30 16:40
	 */
	public enum WechatPayType {
		JSAPI("JSAPI"), MWEB("MWEB"), APP("APP");
		String value;

		WechatPayType(String value) {
			this.value = value;
		}

		/**
		 * 
		 * @author 葛欢欢
		 * @version 2017.11.30 16:40
		 * @return String
		 */
		public String getValue() {
			return value;
		}

		/**
		 * 
		 * @author 葛欢欢
		 * @version 2017.11.30 16:40
		 * @param value
		 *            value
		 */
		public void setValue(String value) {
			this.value = value;
		}

		public boolean equals(String value) {
			return this.value.equals(value);
		}
	}

	/**
	 * 
	 * @ClassName: State
	 * @author 葛欢欢
	 * @version 2017.11.30 16:40
	 */
	public enum State {
		notpay("00"), pay("01"), cancel("02"), faile("03");
		String value;

		State(String value) {
			this.value = value;
		}

		/**
		 * 
		 * @author 葛欢欢
		 * @version 2017.11.30 16:40
		 * @return String
		 */
		public String getValue() {
			return value;
		}

		/**
		 * 
		 * @author 葛欢欢
		 * @version 2017.11.30 16:40
		 * @param value
		 *            value
		 */
		public void setValue(String value) {
			this.value = value;
		}

		/**
		 * 
		 * @author 葛欢欢
		 * @version 2017.11.30 16:40
		 * @param value
		 *            value
		 * @return boolean
		 */
		public boolean equals(String value) {
			return this.value.equals(value);
		}
	}

	/**
	 * 
	 * @ClassName: BackState
	 * @author 葛欢欢
	 * @version 2017.11.30 16:40
	 */
	public enum BackState {
		notback("00"), prebackok("01"), prebackfaile("02"), backok("03"), backfaile("04");
		String value;

		BackState(String value) {
			this.value = value;
		}

		/**
		 * 
		 * @author 葛欢欢
		 * @version 2017.11.30 16:40
		 * @return String
		 */
		public String getValue() {
			return value;
		}

		/**
		 * 
		 * @author 葛欢欢
		 * @version 2017.11.30 16:40
		 * @param value
		 *            value
		 */
		public void setValue(String value) {
			this.value = value;
		}

		/**
		 * 
		 * @author 葛欢欢
		 * @version 2017.11.30 16:40
		 * @param value
		 * @return boolean
		 */
		public boolean equals(String value) {
			return this.value.equals(value);
		}
	}

	/**
	 * 
	 * @ClassName: PayValue
	 * @author 葛欢欢
	 * @version 2017.11.30 16:40
	 */
	public enum PayValue {
		test("00"), normal("01");
		String value;

		PayValue(String value) {
			this.value = value;
		}

		/**
		 * 
		 * @author 葛欢欢
		 * @version 2017.11.30 16:40
		 * @return String
		 */
		public String getValue() {
			return value;
		}

		/**
		 * 
		 * @author 葛欢欢
		 * @version 2017.11.30 16:40
		 * @param value
		 *            value
		 */
		public void setValue(String value) {
			this.value = value;
		}

		/**
		 * 
		 * @author 葛欢欢
		 * @version 2017.11.30 16:40
		 * @param value
		 *            value
		 * @return boolean
		 */
		public boolean equals(String value) {
			return this.value.equals(value);
		}
	}

	/**
	 * 
	 * @ClassName: Type
	 * @author 葛欢欢
	 * @version 2017.11.30 16:40
	 */
	public enum Type {
		consume("00"), recharge("01");
		String value;

		Type(String value) {
			this.value = value;
		}

		/**
		 * 
		 * @author 葛欢欢
		 * @version 2017.11.30 16:40
		 * @return String
		 */
		public String getValue() {
			return value;
		}

		/**
		 * 
		 * @author 葛欢欢
		 * @version 2017.11.30 16:40
		 * @param value
		 *            value
		 */
		public void setValue(String value) {
			this.value = value;
		}

		/**
		 * 
		 * @author 葛欢欢
		 * @version 2017.11.30 16:40
		 * @param value
		 *            value
		 * @return boolean
		 */
		public boolean equals(String value) {
			return this.value.equals(value);
		}
	}

	/**
	 * 
	 * @ClassName: RHandelState
	 * @author 葛欢欢
	 * @version 2017.11.30 16:40
	 */
	public enum RHandelState {
		no("00"), yes("01");
		String value;

		RHandelState(String value) {
			this.value = value;
		}

		/**
		 * 
		 * @author 葛欢欢
		 * @version 2017.11.30 16:40
		 * @return String
		 */
		public String getValue() {
			return value;
		}

		/**
		 * 
		 * @author 葛欢欢
		 * @version 2017.11.30 16:40
		 * @param value
		 *            value
		 */
		public void setValue(String value) {
			this.value = value;
		}

		/**
		 * 
		 * @author 葛欢欢
		 * @version 2017.11.30 16:40
		 * @param value
		 *            value
		 * @return boolean
		 */
		public boolean equals(String value) {
			return this.value.equals(value);
		}
	}

	public static String CODE_SUCCESS = "SUCCESS";
}
